package com.ruoyi.zhgd.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.zhgd.domain.vo.NAsphaltQualityStatisticsVo;
import com.ruoyi.zhgd.mapper.NAsphaltQualityStatisticsMapper;
import com.ruoyi.zhgd.service.NAsphaltQualityStatisticsService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 质量汇总分析业务接口实现
 *
 * @author tll
 * @date 2023-10-12
 */
@RequiredArgsConstructor
@Service
@DS("sjcj")
public class NAsphaltQualityStatisticsServiceImpl implements NAsphaltQualityStatisticsService {

    private final NAsphaltQualityStatisticsMapper baseMapper;

    /**
     * 获取分页列表
     *
     * @param params
     * @param pageQuery
     * @return
     */
    @Override
    public TableDataInfo<NAsphaltQualityStatisticsVo> page(Map<String, Object> params, PageQuery pageQuery) {
        return TableDataInfo.build(baseMapper.page(params, pageQuery.build()));
    }
}
